package bean;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author： pang-yun
 * @date： 2021-12-01 10:48
 * 功能目的 ：用于
 */

public class LifePeriodTest {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("lifePeriod.xml");
        LifePeriod lifePeriod = context.getBean("lifePeriod", LifePeriod.class);
        System.out.println("4.调用 获取创建的实例");
        System.out.println(lifePeriod);
        context.close();
    }
}
